//
//  Car.h
//  Chapt6_CarPartsSplit
//
//  Created by RRam on 2/1/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


//forward declaration, using the @class keyword...
@class Tire;
@class Engine;


@interface Car : NSObject 
{
	//Instance variables....
    Engine *engine; //D001: Engine ptr
    Tire *tires[4]; //D002: C-Style array
}

- (Engine *) engine;                        //M001: get method for Engine
- (void) setEngine: (Engine *) newEngine;   //M002: set method for Engine

- (Tire *) tireAtIndex: (int) index;        //M003: get method for Tire @ someIndex
- (void) setTire: (Tire *) tire 
         atIndex: (int) index;              //M004: set method for Tire @ someIndex

-(void) print;                              //M005: print output

@end
